
// 手机号脱敏
function mobileEncrypt(phone) {
    if (!phone) return '';
    return phone.toString().replace(/([0-9]{3})([0-9]{4})([0-9]{4})/, '$1 **** $3') || '';
}

module.exports = {
    mobileEncrypt,
};